﻿using System;
using System.ComponentModel.DataAnnotations;
using XStudio.XCRF.Data.Business.Archieve;

namespace XStudio.XCRF.Data.Entities.BasicInfo
{
    /// <summary>
    /// 家族史条目内容
    /// </summary>
    public partial class FamilyHistory : BaseEntity<FamilyHistory>, IArchieve
    {
        #region 属性
        /// <summary>
        /// 基本信息ID
        /// </summary>
        [ForeignKey("BasicInfo")]
        public Guid? BasicInfoID { get; set; }
        /// <summary>
        /// 基本信息
        /// </summary>
        public BasicInfo BasicInfo { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [ArchieveField]
        [Column(TypeName = "varchar")]
        [MaxLength(100)]
        public string Content { get; set; }
        #endregion 属性
    }
}
